package com.lanbu.system.domain.mongo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Document(collection = "users")
@Data
public class MongoUsers {

    @Id
    private ObjectId id;

    @Field("status")
    private String status;

    @Field("username")
    private String username;

    @Field("password")
    private String password;

    @Field("avatar")
    private String avatar;

    @Field("promotionRate")
    private int promotionRate;

    @Field("timezone")
    private String timezone;

    @Field("createTime")
    private Date createTime;

    @Field("__v")
    private int version;

    // Getters and Setters
}
